PackageStore Class

Represents a store which contains SCORM packages. Subclasses represent various means of persisting the store in long-term storage.

Namespace: Microsoft.LearningComponents.Storage

Assembly: Microsoft.LearningComponents.Storage.dll

Syntax
C#

public abstract class PackageStore

Constructors
Name Description
Ï PackageStore

Protected constructor. Only subclasses may be instantiated.

Properties
Name Description
Ð LearningStore

Gets the LearningStore associated with this PackageStore. The LearningStore contains the package information.

Methods
Name Description
Ï AddPackageReference

Creates and executes a LearningStoreJob to add a package reference to the PackageStore.

Ð GetPackageReader (PackageItemIdentifier)

Returns a PackageReader that can read files from a package in this store.

Ï GetPackageReader (PackageItemIdentifier, string)

Internal function that allows StoredLearningSession to reduce database calls.

Ï RemovePackageReference

Creates and executes a LearningStoreJob that removes the package referenced by packageId from PackageStore. This action is permanent and deleted information cannot be recovered.

Ï UpdatePackageLocation

Update the package reference to a new location;

Remarks

If an application installed a LearningStore schema that contains information about packages, an implementation of this class will need to be provided. this class.